home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
Other Langs
/
Tickle-4.0 (tcl)
/
src
/
PROC_TEXTalis.c
< prev
next >
Wrap
Text File
|
1993-11-18
|
2KB
|
55 lines
/*
** This source code was written by Tim Endres
** Email: time@ice.com.
** USMail: 8840 Main Street, Whitmore Lake, MI 48189
**
** Some portions of this application utilize sources
** that are copyrighted by ICE Engineering, Inc., and
** ICE Engineering retains all rights to those sources.
**
** Neither ICE Engineering, Inc., nor Tim Endres,
** warrants this source code for any reason, and neither
** party assumes any responsbility for the use of these
** sources, libraries, or applications. The user of these
** sources and binaries assumes all responsbilities for
** any resulting consequences.
*/
#include <Types.h>
#include <Resources.h>
#include <QuickDraw.h>
#include <Windows.h>
#include <Memory.h>
#include <AppleEvents.h>
#include <Aliases.h>
pascal OSErr
PROCEntry(dataType, dataPtr, dataSize, toType, refCon, resultDesc)
DescType dataType;
char *dataPtr;
long dataSize;
DescType toType;
long refCon;
AEDesc *resultDesc;
{
int myerr;
#pragma unused (dataType, refCon)
/*dprintf("TEXT->alis: type '%4.4s' dataPtr x%lx dataSize %ld toType '%4.4s' ",
&dataType, dataPtr, dataSize, &toType);*/
resultDesc->descriptorType = toType;
myerr = NewAliasMinimalFromFullpath(dataSize, dataPtr,
NULL, NULL, (AliasHandle *)&(resultDesc->dataHandle));
if (myerr != noErr)
{
/*dprintf("TEXT->alis: ERROR #%d from NewAliasMinimalFromFullpath() ", myerr);*/
}
/*dprintf("TEXT->alis: myerr %d retType '%4.4s' retHdl x%lx ",
myerr, &resultDesc->descriptorType, resultDesc->dataHandle);*/
return myerr;
}